<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<div class="Page">
		<ul>
			<li class="pagemark">共 <font color="#f05c08"><s:property value="pageBean.allRow"/></font> 条记录</li>
			<li class="pagemark">当前第 <font color="#f05c08"><s:property value="pageBean.currentPage"/></font> 页</li>
			<li class="pagemark">共 <font color="#f05c08"><s:property value="pageBean.totalPage"/></font> 页</li>
			<s:if test="%{pageBean.currentPage != pageBean.totalPage&&pageBean.totalPage>1}">
				<li class="pagenavi"><a id="lastpage" href="" class="pagebutton">最后一页</a></li>
				<li class="pagenavi"><a id="nextpage" href="" class="pagebutton">下一页</a></li>

			</s:if>
			<s:else>
				<li class="pagenavi"><a class="none">最后一页</a></li>
				<li class="pagenavi"><a class="none">下一页</a></li>

			</s:else>

			 <s:if test="%{pageBean.currentPage == 1}">
			 <li class="pagenavi"><a class="none">上一页</a></li>
				<li class="pagenavi"><a class="none">第一页</a></li>

			</s:if>
			<s:else>
			<li class="pagenavi"><a id="previouspage" href="" class="pagebutton">上一页</a></li>
			<li class="pagenavi"><a id="firstpage" href="" class="pagebutton">第一页</a></li>
			</s:else>

		</ul>
</div>
<script language="javascript">
document.getElementById("firstpage")?
document.getElementById("firstpage").href=window.location.pathname+"?page=1${pageBean.queryString}":0;

document.getElementById("previouspage")?
document.getElementById("previouspage").href=window.location.pathname+"?page=${pageBean.currentPage-1}${pageBean.queryString}":0;

document.getElementById("nextpage")?
document.getElementById("nextpage").href=window.location.pathname+"?page=${pageBean.currentPage+1}${pageBean.queryString}":0;

document.getElementById("lastpage")?
document.getElementById("lastpage").href=window.location.pathname+"?page=${pageBean.totalPage}${pageBean.queryString}":0;
</script>


